// @import '~ant-design-vue/dist/antd.less';
@import '~element-ui/lib/theme-chalk/index.css';
@import './palette.scss';
@import './config.scss';
@import './code.scss';
@import './custom-blocks.scss';
@import './arrow.scss';
@import './wrapper.scss';
@import './toc.scss';
@import './searchbox.scss';
@import './nprogress.scss';
// @import './pwa.scss';

body,
html {
  padding: 0;
  margin: 0;
  background-color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: $bodyFontSize;
  color: $bodyTextColor;
}

*::-webkit-scrollbar {
  // width: 4px; 
}

*::-webkit-scrollbar-thumb {
  background-color: rgb(221, 221, 221);
}

*::-webkit-scrollbar-track {
  background-color: transparent;
}

#app {
  transition: transform .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.page {
  padding-left: $sidebarWidth - 2;
}

.navbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-sizing: border-box;
  box-shadow: 0 2px 8px #f0f1f2;
}

.sidebar {
  font-size: 18px;
  background-color: #fff;
  width: $sidebarWidth - 2;
  position: fixed;
  z-index: 10;
  margin: 0;
  top: $navbarHeight + 2;
  left: 0;
  bottom: 0;
  box-sizing: border-box;
  // border-right: 1px solid $borderColor;
  overflow-y: auto;
}

.#{$contentClass}:not(.custom) {
  & {
    @include wrapper();
  }

  p.demo {
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  img {
    max-width: 100%;
  }
}

.#{$contentClass}.custom {
  padding: 0;
  margin: 0;

  img {
    max-width: 100%;
  }
}

a {
  color: $accentColor;
  text-decoration: none;

  &:active,
  &:hover,
  &:link,
  &:visited {
    text-decoration: none !important;
  }
}

p a code {
  font-weight: 400;
  color: $accentColor;
}

p {
  margin-bottom: .4em;
}

kbd {
  background: #eee;
  border: solid .15rem #ddd;
  border-bottom: solid .25rem #ddd;
  border-radius: .15rem;
  padding: 0 .15em;
}

blockquote {
  color: #666;
  border-left: .2rem solid #cbcbcb;
  margin: 1rem 0;
  padding: .25rem 1rem;
  background-color: #f8f8f8;

  & > p {
    margin: .625rem 0;
  }
}

ol,
ul {
  padding-left: 1.2em;
}

li {
  list-style: none;
}

strong {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.25;

  .#{$contentClass}:not(.custom) > & {
    margin-top: -($navbarHeight+1.275);
    padding-top: $navbarHeight + 2.3;
    margin-bottom: 0;

    &:first-child {
      margin-top: -0.2rem;
      margin-bottom: 1rem;

      + .custom-block,
      + p,
      + pre {
        margin-top: 1rem;
      }
    }
  }

  &:hover .header-anchor {
    opacity: 1;
  }
}

h1 {
  font-size: 1.875rem;
  margin-left: -1px;
}

h2 {
  font-size: 1.5rem;
  margin: 0;
  padding-top: .2rem;
  padding-bottom: .6rem;
}

h3 {
  font-size: 1.25rem;
  padding-top: .625rem;
  padding-bottom: .625rem;
}

a.header-anchor {
  font-size: .9em;
  float: left;
  margin-left: -0.87em;
  padding-right: .23em;
  margin-top: .125em;
  opacity: 0;
  transition: opacity .25s ease-in-out;

  &:hover {
    text-decoration: none;
  }
}

.line-number,
code,
kbd {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

ol,
p,
ul {
  line-height: 1.7;
}

hr {
  border: 0;
  border-top: 1px solid $borderColor;
}

table {
  border-collapse: collapse;
  margin: 1rem 0;
  display: block;
  overflow-x: auto;
}

tr {
  border-top: 1px solid #dfe2e5;

  &:nth-child(2n) {
    background-color: #f6f8fa;
  }
}

td,
th {
  border: 1px solid #dfe2e5;
  padding: .6em 1em;
}

.theme-container {
  &.no-navbar {
    .#{$contentClass}:not(.custom) > h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      margin-top: 1.5rem;
      padding-top: 0;
    }

    .sidebar {
      top: 0;
    }
  }
}
@media (min-width: ($MQMobile + 1px)) {
  .theme-container.no-sidebar {
    .sidebar {
      display: none;
    }

    .page {
      padding-left: 0;
    }
  }
}

// element-ui style reset
.el-menu--horizontal {
  line-height: $navbarHeight;
  border-bottom: transparent;
}

.el-menu-item .el-icon,
.el-menu-submenu-title .el-icon {
  font-size: .75rem;
  margin-right: 0;
}

#nav.el-menu--horizontal {
   > .el-menu-item,
  > .el-menu-submenu {
    border-top: 2px solid transparent;
  }

   > .el-menu-item:hover,
  > .el-menu-submenu:hover {
    background-color: transparent;

    // border-top: 2px solid $accentColor;
    // border-bottom: 2px solid transparent;
  }

  > .el-menu-item-selected {
    border-top: 2px solid $accentColor;
    border-bottom: 2px solid transparent;
  }
}

.el-menu.el-menu--horizontal {
  border-bottom: none !important;
}

.el-menu-item {
  font-size: 16px !important;
}

.el-submenu__title {
  font-size: 16px;
}

.el-drawer > * {
  transition: transform .5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.el-menu-item .is-active {
  border-bottom: none;
}
.el-row {
  margin-bottom: 0;
}
@import './mobile.scss';
// @import (optional) '~@docs/style.less';
@import '~@docs/style.scss';